'''
Created on Apr 4, 2012

@author: Travis
'''
# pop-up window for instructions
def about_box():
    # frame inside box
    about = Toplevel()
    aboutfr = Frame(about, width=580, height=480, relief=RIDGE)
    aboutfr.place(x=10, y=10)
    about.geometry("608x504")
    about.focus()
    about.title("I N S T R U C T I O N S")
    about.resizable(FALSE,FALSE)
    about.configure(background="#800000")
    
    # create text box
    scrollbar = Scrollbar(aboutfr)
    scrollbar.pack(side=RIGHT, fill=Y)
    atext = Text(aboutfr, width=71, height=30, relief=RIDGE, wrap=WORD, yscrollcommand=scrollbar.set)
    atext.focus()
    atext.pack(side=LEFT)
    scrollbar.config(command=atext.yview)

    # instructions for text box
    atext.insert(END, """=======================================================================
----------------------------| DESCRIPTION |----------------------------
=======================================================================

Welcome to the Gymnastics program created by [T3AM S1LV3R BAX]. This program was created exclusively for the Holmen Gymnastics team. This program provides an easy, no-nonsense way for coaches, staff and players to efficiently record, view, save, and edit statistics for team members season after season.

=======================================================================
----------------------------| INSTRUCTIONS |---------------------------
=======================================================================

TO ENTER A TEAM:

In order to enter a new team into the program click in the text box adjacent to the 'Enter Team' label. Next, enter the name of the team you would like to add. Make sure to check the spelling. When finished, click the 'SUBMIT' button. The name should now appear in the 'TEAMS' category below. 

=======================================================================

TO DELETE A TEAM:

In order to delete a team name click on the name of the team listed under the 'TEAMS' category. When it is highlighted, click the 'DELETE' button below. 

=======================================================================

TO ENTER A GYMNAST:

To enter a gymnast into the program click in the text box adjacent to the 'Enter Gymnast' label Next, enter the name of the gymnast you would like to add. Make sure to check the spelling. When finished, click the 'SUBMIT' button. the name should now appear in the 'GYMNASTS' category below. 

=======================================================================

TO DELETE A GYMNAST:

In order to delete a gymnast name click on the name of the gymnast under the 'GYMNASTS' category. When it is highlighted, click the 'DELETE' button below.

=======================================================================

TO ENTER A SCORE FOR A NEW GYMNAST:

Enter the name of the school that you would like to add a gymnast to. Next, click in the text box adjacent to the 'Enter Gymnast' and enter the gymnast's name. Then enter the score for the event that you would like to add. You can add more than one event at a time. 

=======================================================================

TO ENTER A GYMNAST TO A PRE-EXISTING TEAM:

Click on the name of the team that you would like to  add a gymnast to. Then, click the 'EDIT' button and add the name of the gymnast. Click 'Enter' and you're done.

=======================================================================

TO ENTER A SCORE FOR A PRE-EXISTING GYMNAST:

Click the name of the gymnast listed under the 'GYMNASTS' category. Next, click the 'EDIT' button below. Enter the score for the event that you would like to add. There is no need to re-enter the gymnast in the entry boxes above. 

=======================================================================

TO SORT THE ORDER OF GYMNASTS IN A TEAM ALPHABETICALLY:

Click on the name of the team that you would like to sort. Once highlighted, click on the 'SORT' button below. 

=======================================================================

TO SAVE INFORMATION THAT HAS BEEN ENTERED:

When you are done entering all the information you want to add click the 'SAVE' button below. 

=======================================================================
|---------------------------------------------------------------------|
|---------------------------[ T3AM S1LV3R BAX ]-----------------------|
|---------------------------------------------------------------------|
|---------------------------[ Copyright 2012 ]------------------------|
|---------------------------------------------------------------------|
=======================================================================
""")
    atext.config(state=DISABLED)